﻿public class travel
{
    public void test()
    {
        double price;
        Console.WriteLine("请输入旅游月份：");
        int month = int.Parse(Console.ReadLine());
        Console.WriteLine("请输入出行方式：1.航班 2.动车");
        int a = int.Parse(Console.ReadLine());
        if (month <= 10 && month >= 5)
        {
            if (a == 1)
            {
                price = 8800 * 0.9;
            }
            else
            {
                price = 8800 * 0.75;
            }
        }
        else
        {
            if (a == 1)
            {
                price = 8800 * 0.6;
            }
            else
            {
                price = 8800 * 0.3;
            }
        }
        Console.WriteLine("旅游行程的价格："+price+"元");
    }
}